import request from '@/utils/request'

/** *
 * 上传文件
 */
function upload(file) {
  return request({
    url: '/sapi/sys/file/upload',
    method: 'post',
    params: file
  })
}


function ossConfig(data) {
  return request({
    url: '/sapi/sys/file/ossConfig',
    method: 'post',
    data: data
  })
}

function uploadOssObject(data) {
  return request({
    url: '/sapi/sys/file/uploadOssObject',
    method: 'post',
    data: data
  })
}

export default {
  upload,
  ossConfig,
  uploadOssObject
}
